package org.jmh.org.domain;

import org.jmh.base.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Department extends BaseDomain {
    @ApiModelProperty(value = "部门的id")
    private Long id;
    @ApiModelProperty(value = "部门的名称")
    private String name;
    @ApiModelProperty(value = "部门的简绍")
    private String intro;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
    private Employee manager;
    private Department parent;
    private String path;
    private Integer state;

    private List<Department> children;
}
